/**
 *  认证相关api
 **/
import { post,get } from "./../utils/NetUtil";

import { getID, getTOKEN } from "./../utils/StorageUtil";
import Config from "../Config";

export function netSetImg(params) {
  return post("/admin/index.php?g=api&m=insert&a=set_img", params);
}
export function Common_problems(params) {
  return post("/admin/index.php?g=api&m=select&a=Common_problems", params);
}

export function getFormItem() {
  return post("/api/verify/getConfigureFormItem", { id: getID() });
}
/************************************新改接口***************************************/
/************************************新改接口***************************************/
export function upload(params) {
  return post("/xgy_api/v1/upload", params);
}
export function getTasks(params) {
  return get("/xgy_api/v1/task", params);
}
export function getTaskDetail(params) {
  return get("/xgy_api/v1/task/detail", params);
}
export function hands(params) {
  return get("/xgy_api/v1/task/hands", params);
}
export function repaymentRecord(params) {
  return get("/xgy_api/v1/task/repaymentRecord", params);
}
export function giveup(params) {
  return post("/xgy_api/v1/task/giveup", params);
}
export function delayApply(params) {
  return post("/xgy_api/v1/task/delayApply", params);
}
export function delayRemind(params) {
  return post("/xgy_api/v1/task/delayRemind", params);
}

export function collectRecordStore(params) {
  return post("/xgy_api/v1/task/collectRecordStore", params);
}
export function collectRecordList(params) {
  return get("/xgy_api/v1/task/collectRecordList", params);
}
export function delayRecord(params) {
  return get("/xgy_api/v1/task/delayRecord", params);
}
